CC      =arm-linux-gnueabihf-g++
#CC      = g++


CFLAGS   = -O3 -Wall -fkeep-inline-functions

INCPATH  = -I ./include/BasicUsageEnvironment -I ./include/groupsock -I./include/liveMedia -I./include/UsageEnvironment

LIBS     =-L. -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -pthread -lrt -shared
OBJECTS_DIR = ./
TARGET=libLiveClient.so
all:
	$(CC)  $(CFLAGS)  $(INCPATH) -c CSession.cpp Interface.cpp Rtsp.cpp
	$(CC)  $(LINKOBJ) -o libLiveClient.so Interface.o CSession.o Rtsp.o $(LIBS)
	rm *.o
	cp $(TARGET) ../bin
	cp HY_LiveClient.h ../bin
clean:
	rm -rf $(TARGET) *.o 